#ifndef __BSP_LED_H__
#define __BSP_LED_H__

#include "main.h"

#define LED_ON_STATUS       GPIO_PIN_RESET
#define LED_OFF_STATUS      GPIO_PIN_SET

typedef struct {
    char *name;
    void (*init)(void);
    void (*on)(void);
    void (*off)(void);
    void (*toggle)(void);

}tsLedDevice, *pLedDevice;


extern void led_init(void);
extern pLedDevice get_led_device(void);


#endif//__BSP_LED_H__


